<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::PointXY32i类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1_point_x_y32i.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="classpcl_1_1_point_x_y32i-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::PointXY32i类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>2D point with integer x- and y-coordinates.  
 <a href="classpcl_1_1_point_x_y32i.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="point__xy__32i_8h_source.html">point_xy_32i.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ab9361abb227658e42a4a05a3b0a9b04d"><td class="memItemLeft" align="right" valign="top"><a id="ab9361abb227658e42a4a05a3b0a9b04d"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_point_x_y32i.html#ab9361abb227658e42a4a05a3b0a9b04d">PointXY32i</a> ()</td></tr>
<tr class="memdesc:ab9361abb227658e42a4a05a3b0a9b04d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:ab9361abb227658e42a4a05a3b0a9b04d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2faf6a4f15d3f1c99d68c0318b5e938e"><td class="memItemLeft" align="right" valign="top"><a id="a2faf6a4f15d3f1c99d68c0318b5e938e"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_point_x_y32i.html#a2faf6a4f15d3f1c99d68c0318b5e938e">~PointXY32i</a> ()</td></tr>
<tr class="memdesc:a2faf6a4f15d3f1c99d68c0318b5e938e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a2faf6a4f15d3f1c99d68c0318b5e938e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad82a3e48be9c75c6d9201830de558e71"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_point_x_y32i.html#ad82a3e48be9c75c6d9201830de558e71">serialize</a> (std::ostream &amp;stream) const</td></tr>
<tr class="memdesc:ad82a3e48be9c75c6d9201830de558e71"><td class="mdescLeft">&#160;</td><td class="mdescRight">Serializes the point to the specified stream.  <a href="classpcl_1_1_point_x_y32i.html#ad82a3e48be9c75c6d9201830de558e71">更多...</a><br /></td></tr>
<tr class="separator:ad82a3e48be9c75c6d9201830de558e71"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af2406d6eaff0921b7651e24db72ea7c9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_point_x_y32i.html#af2406d6eaff0921b7651e24db72ea7c9">deserialize</a> (std::istream &amp;stream)</td></tr>
<tr class="memdesc:af2406d6eaff0921b7651e24db72ea7c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deserializes the point from the specified stream.  <a href="classpcl_1_1_point_x_y32i.html#af2406d6eaff0921b7651e24db72ea7c9">更多...</a><br /></td></tr>
<tr class="separator:af2406d6eaff0921b7651e24db72ea7c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a9414cf0e2c0c17859ce1ac55091bfc99"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classpcl_1_1_point_x_y32i.html">PointXY32i</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_point_x_y32i.html#a9414cf0e2c0c17859ce1ac55091bfc99">randomPoint</a> (const int min_x, const int max_x, const int min_y, const int max_y)</td></tr>
<tr class="memdesc:a9414cf0e2c0c17859ce1ac55091bfc99"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a random point within the specified window.  <a href="classpcl_1_1_point_x_y32i.html#a9414cf0e2c0c17859ce1ac55091bfc99">更多...</a><br /></td></tr>
<tr class="separator:a9414cf0e2c0c17859ce1ac55091bfc99"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:aae56d447b54aab07c91b04f6c2b61026"><td class="memItemLeft" align="right" valign="top"><a id="aae56d447b54aab07c91b04f6c2b61026"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_point_x_y32i.html#aae56d447b54aab07c91b04f6c2b61026">x</a></td></tr>
<tr class="memdesc:aae56d447b54aab07c91b04f6c2b61026"><td class="mdescLeft">&#160;</td><td class="mdescRight">The x-coordinate of the point. <br /></td></tr>
<tr class="separator:aae56d447b54aab07c91b04f6c2b61026"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8fa8123bb6ee4ef80e4e3edec2fdb667"><td class="memItemLeft" align="right" valign="top"><a id="a8fa8123bb6ee4ef80e4e3edec2fdb667"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1_point_x_y32i.html#a8fa8123bb6ee4ef80e4e3edec2fdb667">y</a></td></tr>
<tr class="memdesc:a8fa8123bb6ee4ef80e4e3edec2fdb667"><td class="mdescLeft">&#160;</td><td class="mdescRight">The y-coordinate of the point. <br /></td></tr>
<tr class="separator:a8fa8123bb6ee4ef80e4e3edec2fdb667"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>2D point with integer x- and y-coordinates. </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="af2406d6eaff0921b7651e24db72ea7c9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af2406d6eaff0921b7651e24db72ea7c9">&#9670;&nbsp;</a></span>deserialize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::PointXY32i::deserialize </td>
          <td>(</td>
          <td class="paramtype">std::istream &amp;&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Deserializes the point from the specified stream. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">stream</td><td>The source for the deserialization. </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;      {</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        stream.read (<span class="keyword">reinterpret_cast&lt;</span><span class="keywordtype">char</span>*<span class="keyword">&gt;</span> (&amp;<a class="code" href="classpcl_1_1_point_x_y32i.html#aae56d447b54aab07c91b04f6c2b61026">x</a>), <span class="keyword">sizeof</span> (<a class="code" href="classpcl_1_1_point_x_y32i.html#aae56d447b54aab07c91b04f6c2b61026">x</a>));</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        stream.read (<span class="keyword">reinterpret_cast&lt;</span><span class="keywordtype">char</span>*<span class="keyword">&gt;</span> (&amp;<a class="code" href="classpcl_1_1_point_x_y32i.html#a8fa8123bb6ee4ef80e4e3edec2fdb667">y</a>), <span class="keyword">sizeof</span> (<a class="code" href="classpcl_1_1_point_x_y32i.html#a8fa8123bb6ee4ef80e4e3edec2fdb667">y</a>));</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;      }</div>
<div class="ttc" id="aclasspcl_1_1_point_x_y32i_html_a8fa8123bb6ee4ef80e4e3edec2fdb667"><div class="ttname"><a href="classpcl_1_1_point_x_y32i.html#a8fa8123bb6ee4ef80e4e3edec2fdb667">pcl::PointXY32i::y</a></div><div class="ttdeci">int y</div><div class="ttdoc">The y-coordinate of the point.</div><div class="ttdef"><b>Definition:</b> point_xy_32i.h:91</div></div>
<div class="ttc" id="aclasspcl_1_1_point_x_y32i_html_aae56d447b54aab07c91b04f6c2b61026"><div class="ttname"><a href="classpcl_1_1_point_x_y32i.html#aae56d447b54aab07c91b04f6c2b61026">pcl::PointXY32i::x</a></div><div class="ttdeci">int x</div><div class="ttdoc">The x-coordinate of the point.</div><div class="ttdef"><b>Definition:</b> point_xy_32i.h:89</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a9414cf0e2c0c17859ce1ac55091bfc99"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9414cf0e2c0c17859ce1ac55091bfc99">&#9670;&nbsp;</a></span>randomPoint()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classpcl_1_1_point_x_y32i.html">PointXY32i</a> pcl::PointXY32i::randomPoint </td>
          <td>(</td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>min_x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>max_x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>min_y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>max_y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates a random point within the specified window. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">min_x</td><td>The minimum value for the x-coordinate of the point. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">max_x</td><td>The maximum value for the x-coordinate of the point. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">min_y</td><td>The minimum value for the y-coordinate of the point. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">max_y</td><td>The maximum value for the y-coordinate of the point. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ad82a3e48be9c75c6d9201830de558e71"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad82a3e48be9c75c6d9201830de558e71">&#9670;&nbsp;</a></span>serialize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void pcl::PointXY32i::serialize </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>stream</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Serializes the point to the specified stream. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">stream</td><td>The destination for the serialization. </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;      {</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        stream.write (<span class="keyword">reinterpret_cast&lt;</span><span class="keyword">const </span><span class="keywordtype">char</span>*<span class="keyword">&gt;</span> (&amp;<a class="code" href="classpcl_1_1_point_x_y32i.html#aae56d447b54aab07c91b04f6c2b61026">x</a>), <span class="keyword">sizeof</span> (<a class="code" href="classpcl_1_1_point_x_y32i.html#aae56d447b54aab07c91b04f6c2b61026">x</a>));</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        stream.write (<span class="keyword">reinterpret_cast&lt;</span><span class="keyword">const </span><span class="keywordtype">char</span>*<span class="keyword">&gt;</span> (&amp;<a class="code" href="classpcl_1_1_point_x_y32i.html#a8fa8123bb6ee4ef80e4e3edec2fdb667">y</a>), <span class="keyword">sizeof</span> (<a class="code" href="classpcl_1_1_point_x_y32i.html#a8fa8123bb6ee4ef80e4e3edec2fdb667">y</a>));</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;      }</div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>ml/include/pcl/ml/<a class="el" href="point__xy__32i_8h_source.html">point_xy_32i.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><a class="el" href="classpcl_1_1_point_x_y32i.html">PointXY32i</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
